package net.bac.sbe.common.xls.bean;

import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.util.HSSFColor;

public class  ReportBean {

	private String value;
	private short font;
	private short color;
	
	public static final short BOLD_FONT = HSSFFont.BOLDWEIGHT_BOLD;
	public static final short NORMAL_FONT = HSSFFont.BOLDWEIGHT_NORMAL;
	public static final short NORMAL_COLOR = HSSFColor.BLACK.index;
	public static final short RED_COLOR = HSSFColor.RED.index;
	public static final short GREEN_COLOR = HSSFColor.GREEN.index;
	
	public ReportBean(String pValue, short pFont, short pColor){
		value = pValue;
		font = pFont;
		color = pColor;
	}
	
	public ReportBean(Double pValue, short pFont, short pColor){
		this(String.valueOf(pValue), pFont, pColor);
	}
	
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public short getFont() {
		return font;
	}
	public void setFont(short font) {
		this.font = font;
	}
	public short getColor() {
		return color;
	}
	public void setColor(short color) {
		this.color = color;
	}
	
	
}
